
#include<iostream>
#include"Job.h"
#include<fstream>
#include<list>
void readfile(std::list<Job>& list)
{
    std::ifstream inputfile(PATH,std::ios::binary|std::ios::in); 
    Job job;
    while(inputfile.read((char*)&job,sizeof(job)))
    {
        list.push_back(job);
    }
    // while(!queue.empty())
    // {
    //     Job vjob = queue.front();
    //     std::cout << "====================================="<<std::endl;
    //     std::cout << "arrival: "<<vjob.arrival_time<<std::endl;
    //     std::cout <<"wait time: " << vjob.wait_time<<std::endl;
    //     std::cout << "process_id: " << vjob.process_id <<std::endl;
    //     std::cout << "burst_time" <<vjob.burst_time <<std::endl;
    //     std::cout << "reaming_time" <<vjob.remaining_time<<std::endl;
    //     std::cout << "====================================="<<std::endl;
    //     queue.pop();
    // }
}